package com.tentact.controller;

import com.tentact.pojo.T_User;
import com.tentact.Service.addEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping(value = "/dc")
public class addEmpController {
   @Autowired private addEmpService addempService;
   @RequestMapping(value = "/ac", method = RequestMethod.POST)
    @ResponseBody
       public Integer addEmpController(T_User t_user){
       //对象接受
        System.out.println(t_user.getId());
       Integer tuser=  addempService.addEmpinsert(t_user);

       return tuser;

   }
}
